package cn.kinggm520.controller;

import cn.kinggm520.api.HelloApi;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者: kinggm Email:731586355@qq.com
 * 时间:  2020-07-02 20:21
 */
@RestController
public class HelloController3 {

    @Reference
    private HelloApi helloApi;

    @GetMapping("/dubbo")
    public String sayHello(@RequestParam String s){
        return helloApi.sayHello(s);
    }
}
